package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.InteractionQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 互动提问的问题表 Mapper 接口
 * </p>
 *
 * @author niu
 */
public interface InteractionQuestionMapper extends BaseMapper<InteractionQuestion> {

    @Update("UPDATE interaction_question SET answer_times = answer_times + 1 WHERE id = #{questionId}")
    void updateAnswer_times(Long questionId);
}
